package cn.edu.just.firstjavaapp.l13.exception;

public class Main02 {
    public static void main(String[] args) {
        try {
            int a = 10;
            int c = a / 0;
        }catch (ArithmeticException e){
            System.out.println("被0除了，请换一个数");
            System.out.println(e.getMessage());
        }
    }
}
